package com.hkemmm.control;

import com.hkemmm.bean.UserInfoBean;
import com.hkemmm.service.LoginService;

import java.util.List;

public class LoginControl {
    UserInfoBean userInfoBean;
    LoginService loginService;

    List list;

    public boolean doLogin(){
        boolean canLogined = false;

        System.out.println("List:" + list);

        canLogined = loginService.doLogin(userInfoBean);
        return canLogined;
    }

    public UserInfoBean getUserInfoBean() {
        return userInfoBean;
    }

    public void setUserInfoBean(UserInfoBean userInfoBean) {
        this.userInfoBean = userInfoBean;
    }

    public LoginService getLoginService() {
        return loginService;
    }

    public void setLoginService(LoginService loginService) {
        this.loginService = loginService;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }
}
